package org.basic.sms.domain.bo;


import org.basic.common.core.validate.AddGroup;
import org.basic.common.core.validate.EditGroup;
import org.basic.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.basic.sms.domain.SysSmsLog;

/**
 * 邮件日志业务对象 sys_sms_log
 *
 * @author Shao Hua
 * @date 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSmsLog.class, reverseConvertGenerate = false)
public class SysSmsLogBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateId;

    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long phone;

    /**
     * 短信内容
     */
    @NotBlank(message = "短信内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 发送状态
     */
    @NotNull(message = "发送状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sendStatus;

    /**
     * 接收状态
     */
    @NotNull(message = "接收状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long receiveStatus;


    private String templateName;


}
